package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Permission;

public interface PermissionService {
    //分页查询
    public PageResult findPage(QueryPageBean queryPageBean);
    //添加权限
    public void add(Permission permission);
    //根据id查询权限信息
    public Permission findById(Integer id);
    //编辑权限信息
    public void edit(Permission permission);
    //删除权限
    public void delete(Integer id);
    //校验权限名重复与否
    public boolean checkName(String name);
}
